package cn.glc.daily.life.common.auth;

import cn.glc.daily.life.model.vo.jwt.auth.JwtUserDetailVo;
import org.springframework.beans.BeanUtils;

/**
 * @author simon
 * @date 2021/5/13 15:41
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
public class UserHelper extends AbstractUserHelper {

    /**
     * 获取当前操作人
     *
     * @return
     */
    public static JwtUserDetailVo getOperator() {
        JwtUserDetailVo authUser = new JwtUserDetailVo();
        BeanUtils.copyProperties(getUserInfo(), authUser);
        return authUser;
    }
}
